package com.fong.microservice.producer.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fong.microservice.producer.domain.entity.MsUser;
import com.fong.microservice.producer.domain.repository.MsUserRepository;
import com.fong.microservice.producer.service.MsUserService;


@Service
public class MsUserServiceImpl implements MsUserService {

	@Autowired
	private MsUserRepository userRepository;

	@Override
	public MsUser getUser( Long id ) {
		return userRepository.findOne( id );
	}

	@Override
	public List<MsUser> getAllUser( ) {
		return userRepository.findAll( );
	}

}
